//
//  CoreDataManager.h
//  Lesson_5_记事本
//
//  Created by 大展 on 16/5/31.
//  Copyright © 2016年 Mario. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CoreDataManager : NSObject

// 单例
+ (instancetype)defaultManager;

// 查询整个收藏
- (NSArray *)selectAllCollectionModel;

// 根据readID去删除一个收藏
- (void)deleteCollectionModelWithReadID:(NSNumber *)readID;

// 插入
- (void)insertCollectionModelWithReadModel:(ReadListModel *)readModel html:(NSString *)html;

- (NSArray *)selectAllDownloadModel;

- (BOOL)isContainDownloadModelWithUrl:(NSString *)url;

- (void)insertDownloadModelWithUrl:(NSString *)url filePath:(NSString *)filePath title:(NSString *)title;
@end
